
import { createRouter,createWebHistory } from "vue-router";



const router =createRouter({

history:createWebHistory(),

routes:[

      {
        path:'/',
        redirect:"/Login"//redirect重定到/login这个组件

      },
        {
          path:'/Login',
          component:()=>import("../views/users/Login.vue")

        },{

            path:'/newlogin',
            component:()=>import('../views/users/newlogin.vue')


        },{
          //用户详情页面
          path:"/loginmess",
          component:()=>import('../views/users/loginmess.vue')

        }

]

})

export default router